import ZLayout from "@/layout/ZLayout.vue";
import { RouteRecordRaw } from "vue-router";
import EmptyView from "@views/Empty/ZEmpty.vue";

export const getNoPigRoutes = (): RouteRecordRaw[] => [
  {
    path: "/",
    component: ZLayout,
    redirect: "/keywords",
    meta: {
      title: "Root",
      hideMenu: true,
    },
  },
  {
    path: "/keywords",
    component: ZLayout,
    redirect: "/keywords/center",
    meta: {
      title: "敏感词管理",
    },
    children: [
      {
        path: "list",
        component: EmptyView,
        meta: {
          title: "词表列表",
          icon: "AlbumsIcon",
        },
      },
      {
        path: "center",
        name: "WordCenter",
        component: () => import("@/views/Nopig/keywords/WordCenter.vue"),
        meta: {
          title: "词库中心",
          icon: "ApertureIcon",
        },
      },
    ],
  },
  {
    path: "/estimate",
    component: ZLayout,
    redirect: "/estimate/task",
    meta: {
      title: "敏感词评估",
    },
    children: [
      {
        path: "task",
        name: "EstimateTask",
        component: () => import("@/views/Nopig/estimate/EstimateTask.vue"),
        meta: {
          title: "评估任务",
          icon: "LayersIcon",
        },
      },
      {
        path: "scene",
        name: "EstimateScene",
        component: EmptyView,
        meta: {
          title: "评估场景",
          icon: "ConferenceRoomIcon",
        },
      },
    ],
  },
  {
    path: "/scene",
    component: ZLayout,
    redirect: "/scene/index",
    meta: {
      title: "业务方接入",
    },
    children: [
      {
        path: "index",
        name: "AppScene",
        component: () => import("@/views/Nopig/scene/AppScene.vue"),
        meta: {
          title: "业务场景",
          icon: "ExtensionIcon",
        },
      },
    ],
  },
  {
    path: "/seed",
    component: ZLayout,
    redirect: "/seed/index",
    meta: {
      title: "相似度检测",
    },
    children: [
      {
        path: "index",
        name: "SimilarityRate",
        component: () => import("@/views/Nopig/seed/SimilarityRate.vue"),
        meta: {
          title: "相似度打分",
          icon: "DevToolsIcon",
        },
      },
      {
        path: "manage",
        name: "Similarity",
        component: EmptyView,
        meta: {
          title: "种子库管理",
          icon: "ServerIcon",
        },
      },
    ],
  },
];
